<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>角色编辑页面</title>
    <link href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
        <h1 class="text-center">角色编辑页面</h1>
    <div class="row">
        <div class="col-2"><h6>姓名：  曾川</h6></div>
        <div class="col-10"><h6>学号：  1604220539</h6></div>
    </div>
    <div class="dropdown-divider"></div>
        <form method="post" th:action="@{/role/edit}">
            <div class="form-group">
                <label for="roleName">角色</label>
                <input type="text" class="form-control" name="roleName" th:value="${roleId.name}"/>
            </div>
            <div class="form-group">
                <label for="actorName">演员</label>
                <!--<input type="text" class="form-control" name="actorName" th:value="${roleId.actor.name}"/>-->
                <select class="form-control" name="actorid">
                <option th:each="actor,actorStat : ${list}" th:text="${actor.name}" th:value="${actor.id}"></option>
                </select>
            </div>
            <input type="hidden" name="id" th:value="${info.id}"/>
            <input type="hidden" name="roleId" th:value="${roleId.id}"/>
            <button type="submit" class="btn btn-primary">保存</button>
        </form>
    </div>


</body>
</html>